import request from '@/utils/request'

// 查询路线专题列表
export function listRouteTopic(query) {
  return request({
    url: '/route/routeTopic/list',
    method: 'get',
    params: query
  })
}

// 查询路线专题详细
export function getRouteTopic(id) {
  return request({
    url: '/route/routeTopic/info',
    method: 'get',
    params: {id: id}
  })
}

// 新增路线专题
export function addRouteTopic(data) {
  return request({
    url: '/route/routeTopic',
    method: 'post',
    data: data
  })
}

// 修改路线专题
export function updateRouteTopic(data) {
  return request({
    url: '/route/routeTopic',
    method: 'put',
    data: data
  })
}

// 删除路线专题
export function delRouteTopic(id) {
  return request({
    url: '/route/routeTopic/' + id,
    method: 'delete'
  })
}

// 导出路线专题
export function exportRouteTopic(query) {
  return request({
    url: '/route/routeTopic/export',
    method: 'get',
    params: query
  })
}